/**
 * 采购入库单 api 封装
 *
 * @Author:    AKITA
 * @Date:      2025-07-25 09:40:52
 * @Copyright  AKITA
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const stoordApi = {

    /**
     * 分页查询  @author  AKITA
     */
    queryPage : (param) => {
        return postRequest('/stoord/queryPage', param);
    },

    /**
     * 增加  @author  AKITA
     */
    add: (param) => {
        return postRequest('/stoord/add', param);
    },

    /**
     * 修改  @author  AKITA
     */
    update: (param) => {
        return postRequest('/stoord/update', param);
    },


    /**
     * 删除  @author  AKITA
     */
    delete: (id) => {
        return getRequest(`/stoord/delete/${id}`);
    },

    /**
     * 批量删除  @author  AKITA
     */
    batchDelete: (idList) => {
        return postRequest('/stoord/batchDelete', idList);
    },

    info: (id) => {
        return getRequest(`/stoord/info/${id}`);
    },

    infoUnexecute: (id) => {
        return getRequest(`/stoord/infoUnexecute/${id}`);
    },

};
